package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsSiteHeroMapper;
import com.ruoyi.cms.domain.CmsSiteHero;
import com.ruoyi.cms.service.ICmsSiteHeroService;

/**
 * APP开发-模块轮播内容信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-31
 */
@Service
public class CmsSiteHeroServiceImpl implements ICmsSiteHeroService 
{
    @Autowired
    private CmsSiteHeroMapper cmsSiteHeroMapper;

    /**
     * 查询APP开发-模块轮播内容信息
     * 
     * @param id APP开发-模块轮播内容信息主键
     * @return APP开发-模块轮播内容信息
     */
    @Override
    public CmsSiteHero selectCmsSiteHeroById(Long id)
    {
        return cmsSiteHeroMapper.selectCmsSiteHeroById(id);
    }

    /**
     * 查询APP开发-模块轮播内容信息列表
     * 
     * @param cmsSiteHero APP开发-模块轮播内容信息
     * @return APP开发-模块轮播内容信息
     */
    @Override
    public List<CmsSiteHero> selectCmsSiteHeroList(CmsSiteHero cmsSiteHero)
    {
        return cmsSiteHeroMapper.selectCmsSiteHeroList(cmsSiteHero);
    }

    /**
     * 新增APP开发-模块轮播内容信息
     * 
     * @param cmsSiteHero APP开发-模块轮播内容信息
     * @return 结果
     */
    @Override
    public int insertCmsSiteHero(CmsSiteHero cmsSiteHero)
    {
        return cmsSiteHeroMapper.insertCmsSiteHero(cmsSiteHero);
    }

    /**
     * 修改APP开发-模块轮播内容信息
     * 
     * @param cmsSiteHero APP开发-模块轮播内容信息
     * @return 结果
     */
    @Override
    public int updateCmsSiteHero(CmsSiteHero cmsSiteHero)
    {
        return cmsSiteHeroMapper.updateCmsSiteHero(cmsSiteHero);
    }

    /**
     * 批量删除APP开发-模块轮播内容信息
     * 
     * @param ids 需要删除的APP开发-模块轮播内容信息主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteHeroByIds(Long[] ids)
    {
        return cmsSiteHeroMapper.deleteCmsSiteHeroByIds(ids);
    }

    /**
     * 删除APP开发-模块轮播内容信息信息
     * 
     * @param id APP开发-模块轮播内容信息主键
     * @return 结果
     */
    @Override
    public int deleteCmsSiteHeroById(Long id)
    {
        return cmsSiteHeroMapper.deleteCmsSiteHeroById(id);
    }
}
